package com.hkts.management.unattended.inventory.service.serviceimpl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hkts.management.unattended.inventory.entity.HktsInventory;
import com.hkts.management.unattended.inventory.mapper.HktsInventoryMapper;
import com.hkts.management.unattended.inventory.service.IHktsInventoryService;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 物料档案 服务实现类
 * </p>
 *
 * @author yck
 * @since 2021-09-16
 */
@Service
@Transactional
public class HktsInventorySlaveServiceImpl extends ServiceImpl<HktsInventoryMapper, HktsInventory> {


    @Autowired
    private HktsInventoryMapper hktsInventoryMapper;

    public IPage<HktsInventory> selectPage(Page<HktsInventory> page, HktsInventory hktsInventory) {
        QueryWrapper<HktsInventory> query = Wrappers.query();
        return hktsInventoryMapper.selectPage(page, query);
    }


    public List<HktsInventory> selectList(HktsInventory hktsInventory) {
        QueryWrapper<HktsInventory> query = Wrappers.query();
        return hktsInventoryMapper.selectList(query);
    }


}
